package com.tbit.uqbike.webmanager.dao.capital;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tbit.config.datasource.DataSource;
import com.tbit.uqbike.object.pojo.BadOrder;
import com.tbit.uqbike.object.pojo.vo.AccountDayStatOtherDetailVO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 坏账
 *
 * @Author:BUGTian
 * @DATE: 2022/11/16
 */
@DS(DataSource.CAPITAL)
public interface BadOrderDao extends BaseMapper<BadOrder> {
    /**
     * 其他收支明细
     *
     * @param startTime
     * @param endTime
     * @param accountIdList
     * @param brandId
     * @return
     */
    Map<String, Object> selectOtherDataMap(@Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("accountIdList") List<Integer> accountIdList, @Param("brandId") Integer brandId);

    List<AccountDayStatOtherDetailVO> selectOtherFinancial(@Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("accountIds") List<Integer> accountIds, @Param("brandId") Integer brandId);

    List<AccountDayStatOtherDetailVO> selectOtherFinancialByDay(@Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("accountIds") List<Integer> accountIds, @Param("brandId") Integer brandId);

    List<AccountDayStatOtherDetailVO> selectOtherByDateTime(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("accountIds") List<Integer> accountIds, @Param("brandId") Integer brandId);

    List<AccountDayStatOtherDetailVO> selectOtherFinancialByAccountIdAndDay(@Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("accountIdList") List<Integer> accountIdList, @Param("brandId") Integer brandId);
}
